Further Reading
More Terminal Tricks
Use
↑
and↓
to navigate between your previous commands.Use
Ctrl + r
to search for a previously issued command.Use
Ctrl + A
to navigate to the beginning of the line.Use
Ctrl + E
to navigate to the end of the line.Use
Alt + B
to navigate one word to the left of the cursor.Use
Alt + F
to navigate one word to the right of the cursor.Use
Alt + Backspace
to delete one word to the left of the cursor.Use
Ctrl + Delete
to delete one word to the right of the cursor.Use
Ctrl + D
to close the current terminal.
Altering the Prompt
You can modify your prompt while keeping the same user and hostname, by using the PS1
environment variable.
Check out how you can do this here.
Alternatives to Bash
There are quite a few alternatives to Bash, such as zsh and DASH. Feel free to experiment with them in your free time.
Hardcore Python
Python is well-known for being able to produce short code.
A part of this feature owes to its list comprehensions and its join
function.
If you want to learn even more, take a look at Python's built-in list operations: Learning about lambda functions will surely ease your use of the above functions.